set terminal postscript
set output "conns-file.ps"
set size 1,0.75
set title "Parallel connections (each = 10 calls of 3.3MB)"
set xlabel "Parallel connections"
set ylabel "Response time (s)"
set xtics (1, 4, 8, 32, 64, 128, 256)
plot "conns-file.result" using ($1):($2/10) title "Serial" with linespoints,\
	 "conns-file.result" using ($1):($3/10) title "Parallel" with linespoints,\
	 "conns-file.result" using ($1):($4/10) title "Parallel+Log" with linespoints
	 
set output "conns-file-slowdown.ps"
set title "Parallel connections (each = 10 calls of 3.3MB) -- relative performance to 8 clients parallel"
set xlabel "Parallel connections"
set ylabel "Relative performance"
set yrange [0:1.4]
set xtics (1, 4, 8, 32, 64, 128)
plot "conns-file.result" using ($1):((2.765*$1/8)/$3) title "Parallel" with linespoints,\
	 "conns-file.result" using ($1):((2.765*$1/8)/$4) title "Parallel+Log" with linespoints
